package com.wc.AlgoOJ_train.train1.c6.A606;

import java.util.Scanner;

/**
 * @Author congge
 * @Date 2024/1/10 21:47
 * @description 回文
 * http://43.138.190.70:8888/p/A606
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        while (n-- > 0){
            String s = sc.next();
            if (isSyS(s)) {
                System.out.println("yes");
            }else {
                System.out.println("no");
            }
        }
    }

    static boolean isSyS(String s) {
        char[] chs = s.toCharArray();
        int l = 0;
        int r = chs.length - 1;
        while (l < r) {
            if (chs[l] != chs[r]) {
                return false;
            }
            l++;
            r--;
        }
        return true;
    }
}
